package com.the4man.framework.service.impl;

import com.the4man.framework.dao.MoudleMapper;
import com.the4man.framework.model.Moudle;
import com.the4man.framework.service.MoudleServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lenovo on 2017/12/12.
 */
@Service("moudleService")
public class MoudleServiceImpl implements MoudleServiceI {
    @Autowired
    MoudleMapper moudleMapper;

    public MoudleServiceImpl() {
    }

    public List<Moudle> getMoudlesByRoleID(String roleid) {
        List<Moudle> moudles = this.moudleMapper.selectByPrimaryKey(roleid);
        return moudles;
    }

    public Moudle findMoudleBykey(String mouldid) {
        return this.moudleMapper.findMoudleBykey(mouldid);
    }
}
